<?php
        include("account.php");
	require_once("db_connect.inc");
	$query="SELECT * FROM account WHERE username='".$_POST['Username']."' AND password='".$_POST['Password']."'";
	$result=mysql_query($query);
	if(mysql_num_rows($result)==0){
		header("Location:errore.html");
	}
	else{
		session_start();
		$_SESSION['account']=new account($_POST['Username'], $_POST['Password']);
		header("Location:paginaUtente.php");
	}




?>
